package com.example.video.admin_server.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 管理员角色关联表
 * </p>
 *
 * @author yj
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysRoleUser对象", description="管理员角色关联表")
@Table(name = "sys_user_role")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    @IsAutoIncrement
    @IsKey
    @Column
    private Integer id;

    @ApiModelProperty(value = "角色主键id")
    @Column(name = "role_id",comment = "角色主键id", isNull = false)
    private Integer roleId;

    @ApiModelProperty(value = "管理员id")
    @Column(name = "user_id",comment = "管理员id", isNull = false)
    private Integer userId;


}
